import { EditableCell, EditableRow } from '@/components/EditTable/EditTable';

// 获取选中要删除的ids
export const onTableSelect = (ids, dispatch) => {
    console.log(ids)
    dispatch({
        type: "common/setdeleteIds",
        payload: ids
    })
}

// table中的components
export const components = {
    body: {
        row: EditableRow,
        cell: EditableCell,
    },
};

export const setIsShowAdd = (type, dispatch) => {
    dispatch({
        type: "common/setIsShowAdd",
        payload: type
    })
}